package ui;

import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JPanel;

public class PanelTabards extends JPanel
{
	
	public static JPanel me = null;
	/**
	 * 
	 */
	private static final long	serialVersionUID	= 1L;

	
	public PanelTabards()
	{
		me = this;
		initialize();
	}


	private void initialize()
	{
		//button Grant Dkp to All online people.
		JButton btnGrant = new JButton("Grant Dkp for Being online!");
		btnGrant.setToolTipText("This action will retrieve the list of players in your guild. You MUST have typed /SaveGuild in Allods Chat BEFORE clicking me.");
		btnGrant.addActionListener(new ActionListener()
		{
			
			@Override
			public void actionPerformed(ActionEvent arg0)
			{
				//TODO: Panel Tabards
				
				//boolean granted = dkpData.grantDkp();
				//if (granted)
				//	JOptionPane.showMessageDialog(me,"I have found these players in raid: " + dkpData.getRaidPlayers());
				//else
				//	JOptionPane.showMessageDialog(me,"You have not typed /SaveRaid in Allods chat. What are you trying to do?!");
			}
		});
		
		//Manage Layout
		setLayout(new BorderLayout());
		add(btnGrant, BorderLayout.NORTH);
		
	}
	
	
}
